  /* RESET ET STYLES DE BASE */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Variables */
:root {
    --primary-color: #0a3d62;
    --secondary-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --accent-color: #e67e22;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    z-index: 10000;
}

.backdrop {
    z-index: 9999;
}


/* SECTION 2: HEADER */
.header {
    height: 100vh;
    background: linear-gradient(rgba(13, 71, 161, 0.8), rgba(13, 71, 161, 0.8)), url('../images/accueil/bg-header.png') center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    padding-top: 76px; /* Hauteur de la navbar pour éviter de cacher le contenu */

}

.header-content {
    max-width: 600px;
    padding-top: 80px;
}

.header-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
}

.header-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: left;

}

/* Styles pour le contenu extensible */
.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    margin-bottom: 0;
}

.expandable-content.expanded {
    max-height: 500px; /* Hauteur maximale lorsque déplié */
    opacity: 1;
    margin-bottom: 20px;
}

/* Style pour le bouton */
.toggle-button {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.toggle-button.active {
    background-color: rgba(255, 255, 255, 0.3);
}


/* SECTION 3: NOTRE MISSION */
.mission {
    padding: 100px 0;
}

.mission .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.mission-title {
    flex: 1;
}

.mission-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0d47a1;
    position: relative;
    padding-bottom: 15px;
}

.mission-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0d47a1;
}

.mission-content {
    flex: 2;
}

.mission-content p {
    font-size: 17px;
    color: #555;
}

/* SECTION 4: NOTRE VISION - REDESIGN */
.vision {
    position: relative;
    padding: 0;
    overflow: hidden;
    background-color: #f9f9f9;
}

.vision-container {
    display: flex;
    min-height: 500px;
    position: relative;
}

.vision-image-container {
    position: absolute;
    width: 49%; /* Modifié à 49% comme demandé */
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.vision-image {
    width: 100%;
    height: 100%;
    background: url('../images/accueil/vision.jpg') center/cover no-repeat;
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.vision-image:hover {
    transform: scale(1.1);
}

.vision-content-wrapper {
    width: 100%;
    padding-left: 47%; /* Ajusté pour maintenir l'espace avec 50% d'image */
    display: flex;
    align-items: center;
}

.vision-content {
    padding: 80px 0 80px 65px; /* Maintien du padding de 65px à gauche pour l'espace */
    max-width: 600px;
}

.vision-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.vision-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0d47a1;
}

.vision-content p {
    font-size: 17px;
    color: #555;
    margin-bottom: 20px;
}

 /* Section 5: Nos Valeurs */
 .values-section {
    padding: 100px 0;
}

.values-section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #0d47a1;
    position: relative;
    /*display: inline-block;*/
    padding-bottom: 15px;
}

.values-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0d47a1;
}

.values-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.value-card {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 20px;
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a3a6b;
}

.value-card p {
    color: #555;
}

/* SECTION 6: VIDEO - MODIFIED */
.video-section {
    padding: 100px 0;
    background-color: #f9f9f9;
    text-align: center;
    }

.video-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    }

.video-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0d47a1;
    }

.video-container {
    width: 100%;
    max-width: 1200px; /* Increased from 800px to 1200px */
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    padding-top: 45%; /* Modified from 56.25% for a wider aspect ratio */
    }

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    }

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes video cover the entire container */
    }

/* Styles pour contrôles de la vidéo */
.video-controls-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.video-wrapper:hover .video-controls-wrapper {
    opacity: 1;
}

/* Barre de progression de la vidéo */
.video-progress-container {
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
}

.video-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.video-progress-filled {
    height: 100%;
    background: #0d47a1;
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 3px;
}

.video-progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    width: 0%;
    border-radius: 3px;
}

/* Conteneur des boutons de contrôle */
.video-controls-buttons {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Styles pour le mode plein écran */
.video-container:fullscreen {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container:-webkit-full-screen {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container:-moz-full-screen {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container:-ms-fullscreen {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contrôles toujours visibles en mode plein écran */
.video-container:fullscreen .video-controls-wrapper,
.video-container:-webkit-full-screen .video-controls-wrapper,
.video-container:-moz-full-screen .video-controls-wrapper,
.video-container:-ms-fullscreen .video-controls-wrapper {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
}

/* Ajustement de la vidéo en mode plein écran */
.video-container:fullscreen .video-wrapper,
.video-container:-webkit-full-screen .video-wrapper,
.video-container:-moz-full-screen .video-wrapper,
.video-container:-ms-fullscreen .video-wrapper {
    position: static;
    width: 100%;
    height: 100%;
}

.video-container:fullscreen .video-wrapper video,
.video-container:-webkit-full-screen .video-wrapper video,
.video-container:-moz-full-screen .video-wrapper video,
.video-container:-ms-fullscreen .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Barre de progression plus visible en plein écran */
.video-container:fullscreen .video-progress-bar,
.video-container:-webkit-full-screen .video-progress-bar,
.video-container:-moz-full-screen .video-progress-bar,
.video-container:-ms-fullscreen .video-progress-bar {
    height: 8px;
}

/* Affichage du temps */
.video-time-display {
    color: white;
    font-size: 14px;
    margin-left: 10px;
    margin-right: 10px;
    min-width: 80px;
    text-align: center;
}

.video-container:fullscreen .video-time-display,
.video-container:-webkit-full-screen .video-time-display,
.video-container:-moz-full-screen .video-time-display,
.video-container:-ms-fullscreen .video-time-display {
    font-size: 16px;
}

/* Nouveau style pour le conteneur de l'icône play/pause */
.play-pause-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

/* Nouveau style pour le conteneur de l'icône volume */
.volume-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.volume-slider {
    width: 80px;
    margin-right: 15px;
}

/* Nouveau style pour le conteneur de l'icône plein écran */
.fullscreen-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

/* Style spécifique pour le masquage automatique sur mobile */
.video-controls-wrapper.auto-hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.video-controls-wrapper.auto-hide.show {
    opacity: 1;
    pointer-events: auto;
}

/* SECTION 7: FOUNDER SECTION */
.founder-section {
    padding: 100px 0;
}

.founder-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.founder-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.founder-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    max-width: 100%;
    height: auto;
}

.founder-bio {
    flex: 1;
}

.founder-bio h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.founder-bio h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 400;
}

.founder-bio p {
    margin-bottom: 20px;
}



/* RESPONSIVE DESIGN */
@media screen and (max-width: 992px) {

    /* Assurer que la navbar et son backdrop soient au-dessus des contrôles vidéo */
    .navbar {
        z-index: 10000;
    }
    
    .backdrop {
        z-index: 9999;
    }

    .mission .container,
    .vision .container {
        flex-direction: column;
        gap: 30px;
    }

    .mission-title {
        text-align: center;
    }

    .mission-title h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Vision responsive redesign */
    .vision-image-container {
        width: 45%; /* Ajusté pour tablette */
        clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    }

    .vision-content-wrapper {
        padding-left: 42%; /* Ajusté en conséquence */
    }

    .vision-content {
        padding: 60px 0 60px 50px;
    }

    .video-container {
        max-width: 95%; /* Adjusted for tablets */
        padding-top: 50%; /* Slightly taller on smaller screens */
    }

    .founder-container {
        flex-direction: column;
    }

    .founder-image {
        order: 2;
    }

    .founder-bio {
        order: 1;
    }

    .footer .container {
        grid-template-columns: repeat(2, 1fr);
    }


    /* AJUSTEMENT DU CONTENU A GAUCHE SOUS FORMAT MOBILE */
    /* Notre mission - Réduire la marge gauche de toute la section */
    .mission .container {
        padding-left: 5px; /* Réduire le padding gauche du conteneur */
    }

    /* Notre mission - Garder l'alignement à gauche et ajuster la ligne */
    .mission-title {
        text-align: left;
        margin-left: -60px; /* Réduire davantage la marge à gauche de 20 px pour être plus proche du bord */
    }

    .mission-title h2::after {
        left: 0;
        transform: none;
    }

    /* Nos valeurs - Passer de centré à gauche */
    .values-section h2 {
        text-align: left;
    }
    .values-section h2::after {
    left: 0;
    transform: none;
}

    /* Découvrez notre expertise - Passer de centré à gauche */
    .video-section {
        text-align: left;
    }

    .video-section h2 {
        text-align: left;
        display: block;
    }

    .video-section h2::after {
        left: 0;
        transform: none;
    }

    /* Centrer le conteneur vidéo même si le titre est à gauche */
    .video-container {
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {

    /* Assurer que la navbar et son backdrop soient au-dessus des contrôles vidéo */
    .navbar {
        z-index: 10000;
    }
    
    .backdrop {
        z-index: 9999;
    }
    

    .header-content h1 {
        font-size: 36px;
    }
    /* Modifications pour l'espacement du header en version mobile */
    .header {
        min-height: 100vh;
        height: auto;
        padding-bottom: 40px;
    }
    
    .toggle-button.active {
        margin-bottom: 25px;
    }
    
    .expandable-content.expanded {
        margin-bottom: 25px;
    }

    .video-container {
        padding-top: 56.25%; /* Return to standard aspect ratio on mobile */
    }

    /* Vision responsive redesign */
    .vision-container {
        flex-direction: column;
        min-height: auto;
    }

    .vision-image-container {
        position: relative;
        width: 100%;
        height: 350px;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .vision-content-wrapper {
        width: 100%;
        padding-left: 0;
    }

    .vision-content {
        padding: 40px 20px;
        max-width: none;
    }
    /* Ajustement du logo sur mobile */
    .logo img {
        height: 40px;
    }

    /* Ajustement des contrôles vidéo pour mobile */
    .video-controls-wrapper {
        opacity: 1; /* Toujours visible sur mobile */
    }
    
    
    .volume-slider {
        width: 50px;
    }
    
    /* Activation du système de masquage automatique sur mobile */
    .video-wrapper:hover .video-controls-wrapper {
        opacity: 1; /* Désactiver le hover sur mobile */
    }


    /* AJUSTEMENT DU CONTENU A GAUCHE SOUS FORMAT MOBILE */
    /* Notre mission - Réduire encore plus la marge gauche de toute la section */
    .mission .container {
        padding-left: 5px; /* Maintenir le padding réduit */
    }

    /* Notre mission - Maintenir la marge réduite */
    .mission-title {
        margin-left: -75px; /* Augmenter la réduction sur mobile de 25 px pour être plus proche du bord */
    }

    /* Notre vision - Garder à gauche */
    .vision-content h2 {
        text-align: left;
    }

    .vision-content h2::after {
        left: 0;
        transform: none;
    }

    /* Nos valeurs - Maintenir à gauche */
    .values-section h2 {
        text-align: left;
    }
    .values-section h2::after {
    left: 0;
    transform: none;
    }

    /* Découvrez notre expertise - Maintenir à gauche */
    .video-section {
        text-align: left;
    }

    .video-section h2 {
        text-align: left;
    }

}

@media screen and (max-width: 576px) {

    /* Assurer que la navbar et son backdrop soient au-dessus des contrôles vidéo */
    .navbar {
        z-index: 10000;
    }
    
    .backdrop {
        z-index: 9999;
    }
    

    .header-content {
        text-align: center;
    }
    /* Modifications supplémentaires pour très petits écrans */
    .header {
        padding-bottom: 50px;
    }
    
    .expandable-content.expanded {
        margin-bottom: 30px; 
    }
    
    .toggle-button.active {
        margin-bottom: 30px;
    }
    
    .expandable-content p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .header-content {
        padding-top: 100px;
        padding-bottom: 20px; 
    }

    /* Vision responsive redesign */
    .vision-image-container {
        height: 250px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .vision-content {
        padding: 30px 20px;
    }

    /* AJUSTEMENT DU CONTENU A GAUCHE SOUS FORMAT MOBILE */
    /* Notre mission - Maintenir la marge réduite de toute la section */
    .mission .container {
        padding-left: 5px; /* Maintenir le padding réduit */
    }

    /* Notre mission - Maintenir la marge réduite sur très petits écrans */
    .mission-title {
        margin-left: -95px; /* Augmenter la réduction sur mobile de 25 px pour être plus proche du bord */
    }

    /* Notre vision - Remplacer le centrage par l'alignement à gauche */
    .vision-content h2 {
        text-align: left;
    }

    .vision-content h2::after {
        left: 0;
        transform: none;
    }

    /* Ajustement du logo sur mobile petit écran */
    .logo img {
        height: 35px;
    }

    /* Ajustement des contrôles vidéo pour très petits écrans */
    .volume-slider {
        width: 40px;
    }
    
}
